package com.topdt.jbpm.identity.impl;

import com.thx.common.spring.BeanFactory;
import com.thx.workfloworguser.service.IdentityServiceImpl;
import com.topdt.jbpm.identity.IdentityService;
import com.topdt.jbpm.identity.IdentityServiceFactory;



/**
 * @Project : thx-workflow-orguser
 * @Program Name : com.topdt.jbpm.identity.impl.IIdentityServiceFactory.java
 * @Class Name : IIdentityServiceFactory
 * @Description : 类描述
 * @Author : calonlan
 * @Creation Date : 2015年1月27日 上午10:30:50
 * @ModificationHistory Who When What -------- ---------- -----------------------------------
 *                      username 2015年1月27日 TODO
 */
public class IIdentityServiceFactory implements IdentityServiceFactory {

  private static final IdentityServiceFactory SINGLETON = new IIdentityServiceFactory();

  private final IdentityService service;

  public static final IdentityServiceFactory getSingleton() {
    return SINGLETON;
  }

  public IIdentityServiceFactory() {
    this.service = (IdentityService) BeanFactory.getBean(IdentityService.class);
  }

  public IdentityService getIdentityService() {
    return this.service;
  }

  public String getIdentityServiceClassStr() {
    return IdentityServiceImpl.class.getName();
  }

}
